<van-action-sheet
	style="padding-top: 10px;"
	v-model="ImagesMore.visible"
	:actions="ImagesMore.data"
	cancel-text="取消"
	@select="ImagesMoreSheetChange"
	close-on-click-action>
</van-action-sheet>
<script type="text/javascript">
	var ImagesMoreData = {
		ImagesMore:{
			visible:false,
			dpath:'',
			data:[]
		}
	};
	var ImagesMoreMethods = {
		ImagesMoreSheetChange(data){
			var self = this;
			switch(data.type){
				case 'share':
					$.post('{MOD_URL}&op=ajax&operation=createshare',{
						rid:self.ParamImages.operation.rids.join(',')
					},function(data){
						if(data.success){
							self.$dialog.confirm({
								title: '',
								confirmButtonText:'复制地址',
								message: data.success,
							}).then(function(){
							    self.CommonCopyTxt(data.success)
							}).catch(function(){
							    // on cancel
							});
						}else{
							self.$toast.fail('分享地址获取失败');
						}
					},'json');
				break;
				case 'down':
					window.open(SITEURL+MOD_URL+'&op=download&dpath='+self.ImagesMore.dpath);
				break;
				case 'address':
					$.post('{MOD_URL}&op=ajax&operation=realfianllypath',{
						rid:self.ParamImages.operation.rids.join(',')
					},function(data){
						if(data.realfianllypath){
							self.$dialog.confirm({
								title: '',
								confirmButtonText:'复制地址',
								message: data.realfianllypath,
							}).then(function(){
							    self.CommonCopyTxt(data.realfianllypath)
							}).catch(function(){
							    // on cancel
							});
						}else{
							self.$message({
							  message: '获取固定地址失败',
							  type: 'error'
							});
						}
					},'json')
					
				break;
			}
		}
	};
</script>